#ifndef BOOKFILEDIALOG_H
#define BOOKFILEDIALOG_H

#include <iostream>
#include <QDialog>
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QFile>
#include <QTextStream>
#include "SQLHelper.h"

class BookFileDialog : public QDialog
{
public:
    BookFileDialog(int op);
    ~BookFileDialog();

    void init_view_main();

private:
    int op; // 0：导入，1:导出

    QGridLayout *layout_main;   //主布局

    QLabel *label_file;

    QLineEdit *input_file;

    QPushButton *button_op;

    int input(QString file_name);
    int output(QString file_name);
};

#endif // BOOKFILEDIALOG_H
